package com.lebang.service;

import com.lebang.domain.EmailSdkerrorSendRecord;
import com.lebang.example.EmailSdkerrorSendRecordExample;
import com.lebang.mapper.EmailSdkerrorSendRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class EmailSdkerrorSendRecordService extends BaseService<EmailSdkerrorSendRecord,Integer, EmailSdkerrorSendRecordExample>{
    @Autowired
    private EmailSdkerrorSendRecordMapper mapper;

    /**
     * 获取时间范围的记录
     * @param star
     * @param end
     * @return
     */
    public List<EmailSdkerrorSendRecord> selectByTime(LocalDateTime star, LocalDateTime end) {
        return mapper.selectByTime(star,end);
    }
}
